import request from '@/utils/request'

// 查询NaturalYear列表
export function listNaturalYear(query) {
    return request({
        url: '/training/naturalYear/list',
        method: 'get',
        params: query
    })
}

// 查询NaturalYear详细
export function getNaturalYear(id) {
    return request({
        url: '/training/naturalYear/' + id,
        method: 'get'
    })
}


// 新增NaturalYear
export function addNaturalYear(data) {
    return request({
        url: '/training/naturalYear',
        method: 'post',
        data: data
    })
}

// 修改NaturalYear
export function updateNaturalYear(data) {
    return request({
        url: '/training/naturalYear',
        method: 'put',
        data: data
    })
}

// 删除NaturalYear
export function delNaturalYear(id) {
    return request({
        url: '/training/naturalYear/' + id,
        method: 'delete'
    })
}

// 导出NaturalYear
export function exportNaturalYear(query) {
    return request({
        url: '/training/naturalYear/export',
        method: 'get',
        params: query
    })
}